import useAxios from "@/hooks/useAxios"

function login(username,password){
  return useAxios('/shop-api/user/login',{
    method:"POST",
    loading:true,
    data:{
      username,password
    }
  })
}
function getUser() {
  return useAxios('/shop-api/user/getUser',{
    method:"POST",
    reqAuth:true
  })
}

export {
  login,getUser
}